<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
cfc('core')->checklogin();
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
$return['systemxieyi']=$this->plugin_setting('systemxieyi');
if($_RQ['op']=='get'){
	$item = pdo_get('jy_wuliu_member',array('mid'=>$_SESSION['uid'],'uniacid'=>$_SESSION['uniacid']));
	if(!$item){
		exi('找不到会员信息！','error');
	}
	$item['adds']=$item['adds']?json_decode($item['adds'],true):array(array('picurl'=>'','linkurl'=>0,'title'=>''));
	$return['item']=$item;
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$adds=ijson_encode($postdata['adds']);
	pdo_update('jy_wuliu_member',array('adds'=>$adds),array('mid'=>$_SESSION['uid'],'uniacid'=>$_SESSION['uniacid']));
	exi('设置成功！','','goback');
}